import service from '@/utils/requests'

// 获取打印报表，运行数据 1
export function YunXing(data) {
  return service({
    url: `/getYunXing`,
    method: 'get',
    data: { ...data }
  });
}


//  工单列表
export function WorkOrder(data) {
  return service({
    url: `/getWorkOrder`,
    method: 'get',
    data: { ...data }
  });
}


// 工单列表-根据id查详情
export function WorkOrderId(data) {
  return service({
    url: `/getWorkOrderId?id=${data}`,
    method: 'get',
    // data:{...data}
  });
}


// 打印报表-舒适性列表
export function ShushiList(data) {
  return service({
    url: `/getShushiList`,
    method: 'get',
    data: { ...data }
  });
}


// 打印报表-冷机数据 1
export function Lengji(data) {
  return service({
    url: `/getLengJi`,
    method: 'get',
    data: { ...data }
  });
}


// 设备列表
export function DeviceList(data) {
  return service({
    url: `/getDeviceList`,
    method: 'get',
    data: { ...data }
  });
}


// 工单配置
export function Configuration(data) {
  return service({
    url: `/getConfiguration`,
    method: 'get',
    data: { ...data }
  });
}
// 修改工单列表
export function updateWorkOrder(data) {
  return service({
    url: `/updateWorkOrder`,
    method: 'post',
    data: { ...data }
  });
}


